package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.CheckGroup;
import com.itheima.health.pojo.CheckItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface CheckGroupDao {

    void insert(CheckGroup checkGroup);

    Page<CheckGroup> selectByCondition(String queryString);

    void setCheckGroupAndCheckItem(Map<String, Integer> map);

    CheckGroup selectById(Integer id);

    List<Integer> selectByCheckGroupId(Integer id);

    void update(CheckGroup checkGroup);

    void deleteCheckItemIdByCheckGroupId(Integer id);

    void deleteById(Integer id);

    List<CheckGroup> selectAll();

    Long findCountByCheckGroupId(Integer id);

    List<CheckGroup> findCheckGroupById(Integer id);
}
